package com.boot.system.mapper;

import com.boot.system.entity.SysMenu;
import com.mybatisflex.annotation.UseDataSource;
import com.mybatisflex.core.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Set;

@UseDataSource("sqlite")
@Mapper
public interface MenuMapper extends BaseMapper<SysMenu> {

    /**
     * 获取菜单路由列表
     */
    List<SysMenu> listRoutes(Set<String> roles);

}
